<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html>
<html lang="zh-cn">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,Chrome=1">
    <meta name="viewport" content="width=device-width,initial-scale=1">
    <title>中国人民银行征信前置查询系统</title>

    <!-- Bootstrap -->
    <link href="resources/skins/css/bootstrap.css" rel="stylesheet">
    <link href="resources/js/bootstrap-validator/dist/css/bootstrapValidator.css" rel="stylesheet">
    <link href="resources/skins/css/style.css?r=${resVersion }" rel="stylesheet">
    <link rel="stylesheet" href="resources/skins/css/jquery.treegrid.css">
    
    <link rel="stylesheet" href="resources/js/loading/jquery.mloading.css">
    
    <!-- 引入下面两个库让 IE8 支持 HTML5 元素 -->
    <!-- 警告: Respond.js 通过 file:// 浏览的时候不能正常工作！-->
    <!--[if lt IE 9]>
    <script src="resources/js/html5shiv.min.js"></script>
    <script src="resources/js/respond.min.js"></script>
    <![endif]-->


    <script src="resources/js/jquery-1.11.3.min.js"></script>
    <script src="resources/js/avalon.js?r=${resVersion }"></script>
    <script src="resources/js/promise.js?r=${resVersion }"></script>
    <script src="resources/js/layer/layer.js?r=${resVersion }"></script>
    <script src="resources/js/ajaxfileupload.js?r=${resVersion }"></script>
    <script src="resources/js/preview.js?r=${resVersion }"></script>
    <script src="resources/js/bootstrap.min.js"></script>
    <script src="resources/js/bootstrap-validator/dist/js/bootstrapValidator.js"></script>
    <script type="text/javascript" src="resources/js/bootstrap-validator/dist/js/language/zh_CN.js"></script>
    <script type="text/javascript" src="resources/js/treegrid/jquery.treegrid.js"></script>
    <script type="text/javascript" src="resources/js/treegrid/jquery.treegrid.bootstrap3.js"></script>
    <script src="resources/js/validator.js"></script>
    <script src="resources/js/pinyin.js"></script>
    <script src="resources/js/common.js?r=${resVersion }"></script>
    <script src="resources/js/json2.js"></script>
    <script src="resources/js/md5.js"></script>
    <script src="resources/js/echarts/echarts.min.js?r=${resVersion }"></script>
    <script src="resources/js/sign/hw.js?r=${resVersion }"></script>
    <script src="resources/js/sign/signIframe.js?r=${resVersion }"></script>
    <script src="resources/js/app/inquiry/inquiryUtil.js?r=${resVersion }"></script>
    <script src="resources/js/My97DatePicker/WdatePicker.js?r=${resVersion }"></script>
    <script src="resources/js/page.js?r=${resVersion }"></script>
    <script src="resources/js/app/dept.js?r=${resVersion }"></script>
    <script src="resources/js/app/menu.js?r=${resVersion }"></script>
    <script src="resources/js/app/role.js?r=${resVersion }"></script>
    <script src="resources/js/app/corp.js?r=${resVersion }"></script>
    <script src="resources/js/app/user.js?r=${resVersion }"></script>
    <script src="resources/js/app/work.js?r=${resVersion }"></script>
    <script src="resources/js/app/modifyPwd.js?r=${resVersion }"></script>
    <script src="resources/js/app/realuser.js?r=${resVersion }"></script>
    <script src="resources/js/app/sysconf.js?r=${resVersion }"></script>
    <script src="resources/js/app/notice.js?r=${resVersion }"></script>
    <script src="resources/js/app/approve.js?r=${resVersion }"></script>
    <script src="resources/js/app/privilegeuser.js?r=${resVersion }"></script>
    <script src="resources/js/camera/camera.js?r=${resVersion }"></script>
    <script src="resources/js/keyword/numkeyboard.js?r=${resVersion }"></script>
    <script src="resources/js/app/report/queryTotal.js?r=${resVersion }"></script>
    <script src="resources/js/app/report/charge.js?r=${resVersion }"></script>
    <script src="resources/js/app/workAdd.js?r=${resVersion }"></script>
    <script src="resources/js/loading/jquery.mloading.js?r=${resVersion }"></script>
    
    <script type="text/javascript">
        var sid = "${sid}";
        var userModel = ${userModel};
        var showMenu = "${showMenu}";
        $(document).ready(function(){
        	if(showMenu == "PERSON_QUERY_A"){
        		$("#BUS_QUERY").click();
        		$("#PERSON_QUERY_A").click();
        	}
        	if(showMenu == "AGENT_QUERY_A"){
        		$("#BUS_QUERY").click();
        		$("#AGENT_QUERY_A").click();
        	}
        });
        
    </script>
</head>

<body>
<div id="bg"></div>
<c:set var="userModel" scope="session" value="${userModel}"></c:set>
<c:set var="sid" scope="session" value="${sid}"></c:set>
<div class="navbar navbar-default" role="navigation">
    <div class="container-fluid row">
        <div class="col-xs-6 col-sm-8 col-md-9">
            <div class="navbar-header">
                <a class="navbar-brand" href="javascript:void(0);"><i class="icon-logo"></i></a>
            </div>
        </div>
        <div class="col-xs-6 col-sm-4 col-md-3">
            <ul class="nav navbar-nav">

                <li>
                    <a href="javascript:void(0);">
                        <span> ${userModel.userName} &nbsp;</span>
                        <span>
						       <c:if test="${empty userModel.headUrl}">
                                   <img src="resources/skins/img/img1.jpg"/>
                               </c:if>
						       <c:if test="${! empty userModel.headUrl}">
                                   <img src="file/download?id=${userModel.headUrl }&sid=${sid}" width="28px"
                                        height="28px"/>
                               </c:if>
						   </span>
                    </a>
                </li>
                <li>
                    <a href="javascript:void(0);"><span class="icon-setting"></span></a>
                </li>
                <li class="dropdown">
                    <a href="javascript:void(0);" class="dropdown-toggle" data-toggle="dropdown">
                        <b class="caret"></b>
                    </a>
                    <ul class="dropdown-menu">
                        <li>
                            <a href="javascript:void(0);" onclick="menuUrl('user/view', 'user:modifyPwd');">修改密码</a>
                        </li>
                        
                        <li>
                            <a href="javascript:void(0);" onclick="menuFullUrl('user/head/img/view');">修改头像</a>
                        </li>
                        <li>
                            <a href="javascript:void(0);" onclick="menuFullUrl('work/add/myself?curPage=1&pageSize=10');">我的加班</a>
                        </li>
                        <li>
                            <a href="user/logout?sid=${sid }" onclick="">退出</a>
                        </li>
                    </ul>
                </li>
            </ul>
        </div>
    </div>
</div>

<div class="container page-container">
    <div class="row">
        <div class="left-sidebar col-md-2 col-sm-3 col-xs-4">
            <%--<div class="page-sidebar-wrapper">--%>
            <div id="menuListDiv" class="page-sidebar">
                <ul class="page-sidebar-menu " data-keep-expanded="false" data-auto-scroll="true"
                    data-slide-speed="200">
                    <c:if test="${!empty userModel.menuList}">
                        <c:forEach items="${userModel.menuList}" var="menu" varStatus="status">
                            <c:if test="${menu.resType eq 1 && menu.isCheck eq 1}">
                                <li id="${menu.code}">
                                    <a href="javascript:void(0);"
                                       <c:if test="${menu.uri ne '0'}">onclick="menuFullUrl('${menu.uri}');"</c:if>
                                       title="${menu.name}">
                                        <div class="sidemenu-i ${menu.icon}"></div>
                                        <span class="">${menu.name}</span>
                                        <span class="icon-arrDown"></span>
                                    </a>
                                    <c:if test="${!empty menu.childList }">
                                        <ul>
                                            <c:forEach items="${menu.childList}" var="subMenu" varStatus="status">
                                                <c:if test="${subMenu.resType eq 1 && subMenu.isCheck eq 1}">
                                                    <li id="${subMenu.code}">
                                                        <h4>
                                                            <a href="javascript:void(0);" id="${subMenu.code}_A"
                                                                    <c:if test="${subMenu.code eq 'WORK_CONF'}"> onclick="work.getNowDate();" </c:if>
                                                                    <c:if test="${subMenu.code ne 'WORK_CONF'}"> onclick="menuFullUrl('${subMenu.uri}');" </c:if>
                                                               title="${subMenu.name}"
                                                               <c:if test="${status.count == 1 }">class="active"</c:if> >${subMenu.name}</a>
                                                        </h4>
                                                    </li>
                                                </c:if>
                                            </c:forEach>
                                        </ul>
                                    </c:if>

                                </li>
                            </c:if>
                        </c:forEach>
                    </c:if>
                </ul>

            </div>

            <%--</div>--%>
        </div>
        <div id="rightDiv" class="right-content col-md-10 col-sm-9 col-xs-8">

            <div id="page-content-wrapper">

            </div>
        </div>
    </div>
</div>

</body>

</html>